using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Furiant.Figment.Core;

namespace Furiant.Figment.Agents
{
    public class Agent : GameObject
    {
        private readonly SortedList<int, string> _names = new SortedList<int, string>();

        
        public SortedList<int, string> Names { get { return _names; } }

        
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append(Id);

            for(var i =0; i<Names.Count()-1;i++)
            {
                if (string.IsNullOrWhiteSpace(_names[i])) continue;

                sb.AppendFormat(" {0}", _names[i]);
            }

            return sb.ToString();
        }
    }
}
